package com.ukayunnuo.config;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * tdengine 数据源配置Properties
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.datasource.tdengine")
public class TdengineProperties {
    private String url;
    private String username;
    private String password;
    private String driverClassName;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
